Class java.beans.SimpleBeanInfo
All Packages Class Hierarchy This Package Previous Next Index
Class java.beans.SimpleBeanInfo
Object
|
+----java.beans.SimpleBeanInfo
- public class SimpleBeanInfo
- extends Object
- implements BeanInfo
This is a support class to make it easier for people to provide
BeanInfo classes.
It defaults to providing "noop" information, and can be selectively
overriden to provide more explicit information on chosen topics.
When the introspector sees the "noop" values, it will apply low
level introspection and design patterns to automatically analyze
the target bean.
-
java.beans.SimpleBeanInfo()
-
-
getAdditionalBeanInfo()
- Claim there are no other relevant BeanInfo objects.
-
getBeanDescriptor()
- Deny knowledge about the class and customizer of the bean.
-
getDefaultEventIndex()
- Deny knowledge of a default event.
-
getDefaultPropertyIndex()
- Deny knowledge of a default property.
-
getEventSetDescriptors()
- Deny knowledge of event sets.
-
getIcon(int)
- Claim there are no icons available.
-
getMethodDescriptors()
- Deny knowledge of methods.
-
getPropertyDescriptors()
- Deny knowledge of properties.
-
loadImage(String)
- This is a utility method to help in loading icon images.
SimpleBeanInfo
public SimpleBeanInfo()
getAdditionalBeanInfo
public java.beans.BeanInfo[] getAdditionalBeanInfo()
- Claim there are no other relevant BeanInfo objects. You
may override this if you want to (for example) return a
BeanInfo for a base class.
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Deny knowledge about the class and customizer of the bean.
You can override this if you wish to provide explicit info.
getDefaultEventIndex
public int getDefaultEventIndex()
- Deny knowledge of a default event. You can override this
if you wish to define a default event for the bean.
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Deny knowledge of a default property. You can override this
if you wish to define a default property for the bean.
getEventSetDescriptors
public java.beans.EventSetDescriptor[] getEventSetDescriptors()
- Deny knowledge of event sets. You can override this
if you wish to provide explicit event set info.
getIcon
public java.awt.Image getIcon(int iconKind)
- Claim there are no icons available. You can override
this if you want to provide icons for your bean.
getMethodDescriptors
public java.beans.MethodDescriptor[] getMethodDescriptors()
- Deny knowledge of methods. You can override this
if you wish to provide explicit method info.
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Deny knowledge of properties. You can override this
if you wish to provide explicit property info.
loadImage
public java.awt.Image loadImage(String resourceName)
- This is a utility method to help in loading icon images.
It takes the name of a resource file associated with the
current object's class file and loads an image object
from that file. Typically images will be GIFs.
- Parameters:
- resourceName - A pathname relative to the directory
holding the class file of the current class. For example,
"wombat.gif".
- Returns:
- an image object. May be null if the load failed.
All Packages Class Hierarchy This Package Previous Next Index